<div id="content-flash">
</div>
<div id="content-title">
    <p id="ctitle-p">
        Edit Image
    </p>
</div>
<div class="hor-line"></div>
<div id="content">
    <form action="<?php echo base_url() ?>article/edit_image" method="post" enctype="multipart/form-data">
        <div class="content-field">
            <p class="p-wrapper">
                <span class="field label">
                    <label>IMAGE</label>
                </span>
            </p>
        </div>
        <div class="field-separator"></div>
        <div class="content-field">
            <img 
                src="<?php echo base_url().'img/uploads/'.$image->image_url;?>"
                style="<?php echo ($image->image_width > 850) ? 'width:850px;' : '' ;?>"
            />
        </div>
        <div class="content-field">
            <p class="p-wrapper">
                <span  class="field label">
                    <label>WIDTH</label>
                    <span>: <?php echo $image->image_width;?> px</span>
                </span>
            </p>
        </div>
        <div class="content-field">
            <p class="p-wrapper">
                <span  class="field label">
                    <label>HEIGHT</label>
                    <span>: <?php echo $image->image_height;?> px</span>
                </span>
            </p>
        </div>
        <div class="content-field">
            <p class="p-wrapper">
                <span  class="field label">
                    <label>TITLE</label>
                    <input type="text" name="fimage-title" id="fimage-title" value="<?php echo $image->image_title; ?>"/>
                </span>
            </p>
        </div>
        <div class="field-separator"></div>
        <div class="field-separator"></div>
        <div class="content-field">
            <input type="image" src="<?php echo base_url(); ?>img/style/submit_button.png"/>
        </div>
    </form>
</div>